package ModelLayer.OrdreMappe;
import ModelLayer.LagerMappe.*;


public class Delordre
{
    private int antal;
    private Lager lager;
    private DelLager delLager;
    
    /**
     * Constructor for objects of class OrdreCon
     */
    public Delordre(int antal, Lager lager, DelLager delLager)
    {
        this.antal = antal;
        this. lager = lager;
        this.delLager = delLager;
    }
    
    public int getAntal()
    {
        return antal;
    }
    
    public void setAntal(short newAntal)
    {
        antal = newAntal;
    }
    
    public Lager getLager()
    {
        return lager;
    }
    
    public DelLager getDelLager()
    {
        return delLager;
    }
    /**
     * Ganger antallet med varets salgspris.
     */
    public double getSamletPris()
    {
        return antal * delLager.getVare().getSalgspris();
    }
}